#!/bin/sh

#  http://xbartx.wordpress.com/2008/08/15/polskie-radio-sluchaj-w-internecie-a-system-gnulinux/

# EURO
# mms://stream.polskieradio.pl/program4_wma10

# PR dla ZAGRANICY
# mms://stream.polskieradio.pl/zagranica_wma10

# RADIO PARLAMENT
# mms://stream.polskieradio.pl/sejm_wma10
# mms://stream.polskieradio.pl/senat_wma10
# mms://stream.polskieradio.pl/komisja_wma10

echo .

buff=256


# mplayer "http://stream.polskieradio.pl/program2"



case "$1" in

'3')
# 
# mplayer -cache 256 -playlist http://www.radio.com.pl/st/program3.asx
mplayer -cache $buff "http://stream.polskieradio.pl/program3"
;;


'2')
# mplayer -cache 256 -playlist http://www.radio.com.pl/st/program2.asx
mplayer -cache $buff "http://stream.polskieradio.pl/program2"
;;


'1')
# 
# mplayer -cache 256 -playlist http://www.radio.com.pl/st/program1.asx
mplayer -cache $buff "http://stream.polskieradio.pl/program1"
;;


'4')
# 
# mplayer -cache 256 -playlist http://www.radio.com.pl/st/program1.asx
mplayer -cache $buff "http://stream.polskieradio.pl/program4"
;;


'zag')
# 
# mplayer -cache 256 -playlist http://www.radio.com.pl/st/program1.asx
mplayer -cache $buff "http://stream.polskieradio.pl/zagranica"
;;

's')
# 
# mplayer -cache 256 -playlist http://www.radio.com.pl/st/program1.asx
mplayer -cache $buff "http://stream.polskieradio.pl/sejm"
;;


'st')
# 
# mplayer -cache 256 -playlist http://www.radio.com.pl/st/program1.asx
mplayer -cache $buff "http://stream.polskieradio.pl/senat"
;;

'ko')
# 
# mplayer -cache 256 -playlist http://www.radio.com.pl/st/program1.asx
mplayer -cache $buff "http://stream.polskieradio.pl/komisja"
;;



*)
echo "
     program: trojka 		- 3
              dwujkae		- 2
	      jedynka      	- 1

	      EURO		- 4
	      sejm		- s
	      senat		- st
	      komisje		- ko
              "
;;
esac



